"""
循环语句：

 while True:
     print()
     print()

 while i > 2:
     print()

# 0,1,2,3,4
for i in range(5):
    print()
    print()

#2,3,4
for i in range(2,5):
    print()
    print()

range(start,stop,setp):
"""
import random
b = random.randint(1, 100)
while True:
    a = eval(input("请输入一个数: "))
    if a > b:
        print(f"你猜的数太大了")
    elif a < b:
        print(f"你猜的数太小了")
    else:
        print(f"你猜对了")
        break
